package ru.amse.tsyganov.jumleditor.view.preferences;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Font;

public class Fonts {

	private static Font defaultFont;

	public static Font getDefaultFont() {
		if (defaultFont == null) {
			defaultFont = new Font(null, "arial", 8, SWT.NORMAL);
		}
		return defaultFont;
	}
	
	public void dispose() {
		if (defaultFont != null) {
			defaultFont.dispose();
		}
	}
}
